package com.xhsj.user.hr.process.tbLearningGarden.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xhsj.user.hr.process.dto.tbLearningGarden.LearningStatisticsListDto;
import com.xhsj.user.hr.process.hrTransferJob.query.CompletedTransferJobApplyQuery;
import com.xhsj.user.hr.process.tbLearningGarden.query.LearnedListQuery;
import com.xhsj.user.hr.process.tbLearningGarden.query.LearningStatisticsListQuery;
import com.xhsj.user.hr.process.tbLearningGarden.vo.FindToDayStudyNumberVo;
import org.apache.ibatis.annotations.Mapper;
import com.xhsj.user.hr.process.tbLearningGarden.entity.TbLearningGardenContentLearningRecord;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;
import java.util.Date;
import java.util.List;
/**
 * <p>
 * 学习园地内容申请-学习记录 Mapper 接口
 * </p>
 *
 * @author 苏小林
 * @since 2020-11-24
 */
@Mapper
public interface TbLearningGardenContentLearningRecordMapper extends BaseMapper<TbLearningGardenContentLearningRecord> {
    /**
     * @Description: 学习统计按部门列表
     * @Author: liuqinghua
     * @Date: 2020/11/24
     */
    IPage<LearningStatisticsListQuery> learningStatisticsList(Page<LearningStatisticsListQuery> page, @Param("data") LearningStatisticsListDto data);

    /**
     * 查询各部门今日学习人数
     * @author 苏小林
     * @date 2020/11/24 14:31
     * @param: month
     * @param: now
     * @return: java.util.List<com.xhsj.user.hr.process.tbLearningGarden.vo.FindToDayStudyNumberVo>
     */
    List<FindToDayStudyNumberVo> findToDayStudyNumber(@Param("month") String month, @Param("date") LocalDate date);
    /**
     * @Description: 查看已学习的名单
     * @Author: liuqinghua
     * @Date: 2020/11/24
     */
    IPage<LearnedListQuery> learnedList(Page<LearnedListQuery> page,  @Param("data") LearningStatisticsListDto data);

    /**
     * 部门发布信息统计
     * @author 苏小林
     * @date 2020/11/24 17:48
     * @param: month
     * @param: now
     * @return: java.util.List<com.xhsj.user.hr.process.tbLearningGarden.vo.FindToDayStudyNumberVo>
     */
    List<FindToDayStudyNumberVo> findDeptPublishInfo(@Param("month") String month, @Param("date") LocalDate date);

}
